project( TEST )
cmake_minimum_required( VERSION 2.6 )
set( CMAKE_LIB_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/../libs )
set( CMAKE_CXX_FLAGS -g )
#aux_source_directory( . TEST_SRC )
set( CLIENT_SRC main.cpp )
set( LOCK_READ_SRC lock_read.cpp file_lock.cpp )
set( LOCK_WRITE_SRC lock_write.cpp file_lock.cpp )
set( EMU_STORE_REQUEST_SRC emu_store_request.cc GBKSaxHandler.cc UserRequest.cc Socket.cpp Buffer.cpp IOStream.cpp )
link_directories( ${CMAKE_SOURCE_DIR}/../libs )
include_directories( ${CMAKE_SOURCE_DIR}/../src/thread )
include_directories( ${CMAKE_SOURCE_DIR}/../src/network )
include_directories( ${CMAKE_SOURCE_DIR}/xmlcc/source/xmlcc )
add_executable( client ${CLIENT_SRC} )
add_executable( lock_read ${LOCK_READ_SRC} )
add_executable( lock_write ${LOCK_WRITE_SRC} )
add_executable( emu_store_request ${EMU_STORE_REQUEST_SRC} )
target_link_libraries( client icenetwork icethread )
target_link_libraries( emu_store_request ${CMAKE_SOURCE_DIR}/libxmlcc.so )
#target_link_libraries( client ${CMAKE_SOURCE_DIR}/../libs/libicenetwork.so.1.0 )
